//
// Created by baigui on 21-7-9.
//

#ifndef SIMPLE_PLAYER_NDKRENDER_H
#define SIMPLE_PLAYER_NDKRENDER_H


#include "VideoRender.h"

class NDKRender : public VideoRender {

public:
    NDKRender(weak_ptr<MediaPlayer> player);

    bool Open(void *path) override;

    bool start() override;

    void handle(int , void *) override ;

public:
    ANativeWindow *getSurface();

};


#endif //SIMPLE_PLAYER_NDKRENDER_H
